package cn.net.cfss.fgbp.provider.console.dao;

import cn.net.cfss.fgbp.api.console.dto.SysRoleDto;
import cn.net.cfss.fgbp.api.console.vo.SysRoleVo;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

/**
 * @author oygq
 * @title: RoleDtoMapper
 * @description: TODO
 * @date 2019/4/2 11:22
 */
public interface SysRoleDtoMapper extends Mapper<SysRoleDto> {

    List<SysRoleDto> selectByEntity(SysRoleVo vo);

    List<SysRoleDto> queryList(@Param("role") SysRoleDto dto, @Param("isSuperAdmin") boolean isSuperAdmin);

    int check(String roleCode);
}
